'use strict';
function same_elements(collection,item1){
  for(let item2 of collection){
    if(item1===item2){
      return true;
    }
  }
  return false;
}
function compare_collections(collection_a, collection_b) {
  return collection_a.every(function(item){
    return same_elements(collection_b,item);
  })
}

module.exports = compare_collections;
compare_collections([1,11,27,20,4,9,15],[1,11,27,20,4,9,15]);

